package hoaitt.vnu.edu;

public class ExpressionTest {

	public static void main(String[] args) {
		Numeral n1 = new Numeral(1231);
		Numeral n2 = new Numeral(1231);
		Numeral n3 = new Numeral(12);
		
		Addition test = new Addition(n1, n2);
		Addition test2 = new Addition(n1, n2);
		Addition test3 = new Addition(test, test2);
		Square s1 = new Square(n1);
		Addition a1 = new Addition(new Numeral(2), s1);
		System.out.println(a1.toString());
		
		
		Square t4 = new Square(n3);
		
//		System.out.println(test3.evaluate());
		System.out.println(t4.evaluate());
		
	}
}
